package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.DeviceDataPageReqDto;
import com.zzyl.vo.DeviceDataGraphVo;
import com.zzyl.vo.DeviceDataVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceDataService {
    PageResponse<DeviceDataVo> selectByPage(@Param("deviceDataPageReqDto") DeviceDataPageReqDto deviceDataPageReqDto);

    Object queryDeviceDataListByDay(@Param("iotId") String iotId, @Param("functionId") String functionId, @Param("startTime") Long startTime, @Param("endTime") Long endTime);

    ResponseResult<List<DeviceDataGraphVo>> queryDeviceDataListByWeek(@Param("iotId") String iotId, @Param("functionId") String functionId, @Param("startTime") Long startTime, @Param("endTime") Long endTime);

}
